<#import "www/comm.html" as main>
<!DOCTYPE html PUBliC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>句容机关工委网站</title>
    <link href="../style/www/InvestView.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../js-plugin/jquery-1.6.min.js"></script>
    <script type="text/javascript" src="../js-plugin/slider.js"></script>
    <script type="text/javascript" src="../js-plugin/superslide.js"></script>
    <script type="text/javascript" src="../js/www/InvestView.js"></script>
    <@main.statusbar />
</head>
<body>
    <!-- 页头 -->
    <@main.header />
	<!-- 内容区 -->
	<div class="center wrapper">
		<div class="com-cloumn sub-title">
			当前位置：<a href="${response.encodeURL('/Index')}">首页</a>
            >> <a href="${response.encodeURL('Invest')}">问卷调查</a>
			>> <a href="${response.encodeURL('InvestView?id='+invest.id?c)}">${invest.title?html}</a>
        </div>
		<div class="leftList">
			<@main.loginbox />
			<@main.rankbox />
			<@main.noticebox />
		</div>
		<div class="rightList">
			<div class="invest-detail">
				<div class="act-top">
					<div class="act-title">${invest.title?html}</div>
					<div class="act-info">
						<span>截止时间：${invest.endtime?date}</span>
						<span>发布人：${invest.createusername?html}</span>
						<span>参与人数：<font color="#b21916">${invest.takeinnum?c}</font>次</span>
					</div>
				</div>
				<div class="act-content">${invest.info?html}</div>
				<div class="dividing"></div>
				<div class="invest-quest">
					<#list investMgr.getInvestQuesByMainID(invest.id) as quest>
						<div id="questBox_${quest.id?c}" class="questionBox" QID="${quest.id?c}">
							<div class="title">${quest_index+1}、${quest.content?html}</div>
							<div class="optionlist">
								<div class="red"></div>
								<#list investMgr.getInvestOptionByQuesID(quest.id) as option>
									<div id="optionBox_${option.id?c}" class="optionBox">
										<#if quest.type=1>
											<input type="radio" class="option" id="option_${option.id?c}" name="quest_${quest.id?c}" OID="${option.id?c}" />
										<#elseif quest.type=2>
											<input type="checkbox" class="option" id="option_${option.id?c}" name="quest_${quest.id?c}" OID="${option.id?c}" />
										</#if>
										<label class="option_label" for="option_${option.id?c}">${option.content?html}</label>
									</div>
								</#list>
							</div>
						</div>
					</#list>
				</div>
				<#if (.now>=invest.starttime) && (.now<=invest.endtime)>
				<div id="invest-buttom" class="btns">
					<div id="submitButton" class="buttom" CID="${invest.id?c}"> 提 交 </div>
				</div>
				</#if>
			</div>
			<div class="lastnext">
				<div class="last">上一篇：<a href="${response.encodeURL('InvestView?id='+lastInvest.id?c)}" title="${lastInvest.title?html}">${lastInvest.title?html}</a></div>
				<div class="next">下一篇：<a href="${response.encodeURL('InvestView?id='+nextInvest.id?c)}" title="${nextInvest.title?html}">${nextInvest.title?html}</a></div>
			</div>
		</div>
	</div>
    <!-- 页脚 -->
    <@main.footer />
</body>
</html>
